<html>
 <head>
  <link href="./leetcode-problem.css" rel="stylesheet" type="text/css">
 </head>
 <body>
  <div class="question_difficulty">
   难度：Easy
  </div>
  <div>
   <h1 class="question_title">
    412. Fizz Buzz
   </h1>
   <p>
    Write a program that outputs the string representation of numbers from 1 to
    <i>
     n
    </i>
    .
   </p>
   <p>
    But for multiples of three it should output &ldquo;Fizz&rdquo; instead of the number and for the multiples of five output &ldquo;Buzz&rdquo;. For numbers which are multiples of both three and five output &ldquo;FizzBuzz&rdquo;.
   </p>
   <p>
    <b>
     Example:
    </b>
   </p>
   <pre>
n = 15,

Return:
[
    "1",
    "2",
    "Fizz",
    "4",
    "Buzz",
    "Fizz",
    "7",
    "8",
    "Fizz",
    "Buzz",
    "11",
    "Fizz",
    "13",
    "14",
    "FizzBuzz"
]
</pre>
  </div>
  <div>
   <h1 class="question_title">
    412. Fizz Buzz
   </h1>
   <p>
    写一个程序，输出从 1 到
    <em>
     n
    </em>
    数字的字符串表示。
   </p>
   <p>
    1. 如果&nbsp;
    <em>
     n&nbsp;
    </em>
    是3的倍数，输出&ldquo;Fizz&rdquo;；
   </p>
   <p>
    2. 如果&nbsp;
    <em>
     n&nbsp;
    </em>
    是5的倍数，输出&ldquo;Buzz&rdquo;；
   </p>
   <p>
    3.如果&nbsp;
    <em>
     n&nbsp;
    </em>
    同时是3和5的倍数，输出 &ldquo;FizzBuzz&rdquo;。
   </p>
   <p>
    <strong>
     示例：
    </strong>
   </p>
   <pre>n = 15,

返回:
[
    "1",
    "2",
    "Fizz",
    "4",
    "Buzz",
    "Fizz",
    "7",
    "8",
    "Fizz",
    "Buzz",
    "11",
    "Fizz",
    "13",
    "14",
    "FizzBuzz"
]
</pre>
  </div>
 </body>
</html>